﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using XCore.Dependency;
using XCore.Extensions;

namespace Web.Client.Utils
{
    public class ClientSession : IScopedDependency
    {
        private readonly IHttpContextAccessor _httpContextAccessor;
        public ClientSession(IHttpContextAccessor httpContextAccessor)
        {

        }
        public int UserId
        {
            get
            {
                return _httpContextAccessor.HttpContext.GetUserId();
            }
        }
    }
}
